# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=cdw
pkgver=0.8.1
pkgrel=3
pkgdesc="cdw is a front-end for cd recoding tools"
url="http://cdw.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
depends="cdrkit"
makedepends="ncurses-dev libcdio-dev libburn-dev bison gettext-dev
	linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/cdw/cdw-$pkgver.tar.gz
	cdw_colors.c.patch"

build() {
	export LIBS="-lintl" && ./configure --prefix=/usr
	make
}

package() {
	chmod +x $srcdir/$pkgname-$pkgver/install-sh
	make DESTDIR="$pkgdir" install
}

sha512sums="08f6bac823f534987835f434190601d0a72df2246ff78bfe1af98fd30dda25edb8cf2e09161b3a0bc55e9efefbc453b409cc95fd3c117d447f07e49f79072e33  cdw-0.8.1.tar.gz
60f882f246ca3739e207d91c95ddf41b03f306012fa771ecf5f9a62497756b8e4d615c2bbc71bfa02cab3cd77b6f6ecf7367a9ef92319f46764f89412b1e2cff  cdw_colors.c.patch"
